const npm = require('npm');
npm.load(err=>{
    if(!err){
        npm.commands['run-script'](['test', 'start']); 
    }else{
        console.log('npm 加载失败');
    }
});